<%@ page language="java" contentType="text/html; charset=UTF-8"
  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">

<head>
<title>陆老师小课堂</title>
<%@ include file="/WEB-INF/include/meta.jsp"%>
<%@ include file="/WEB-INF/include/css.jsp"%>
</head>
<!-- end header -->

<body>
  <div class="page-group">
    <div class="page page-current bg-light-gray">
      <div class="content">
        <header class="bar bar-nav dark-header">
          <a href="${ctx.host}/oral-groups/${record.oralRound.group.id}" class="icon icon-left pull-left" style="color: #fff;"></a>
          <h1 class="title">${record.oralRound.name}</h1>
        </header>
        <div class="content" style="background-color: #FFF">
          <div class="result-overlay result-overlay-visible"></div>
          <div class="result-modal grade-modal result-modal-in" style="display: block; margin-top: -11.5rem;">
            <div class="result-modal-inner">
              <div class="result-modal-title">
                <h4 class="grade-title">测试已完成</h4>
                <%-- <a href="javascript:void(0);" class="close-modal" data-link="${ctx.host}/oral-groups/${record.oralRound.group.id}"><img src="${ctx.host}/resource/images/close.png"></a> --%>
              </div>
              <div class="grade-section">
                <div class="grade-star">
                  <div class="star-group">
                    <i class="star"></i>
                    <i class="star"></i>
                    <i class="star"></i>
                  </div>
                  <div class="grade-target text-center">用时<span class="grade-seconds">${record.seconds}</span>秒，走了<span class="grade-seconds">${record.branches}</span>个分支</div>
                  <a id="NeedShare" href="javascript:void(0);" data-link="${ctx.host}/rounds/${record.oralRound.id}/records/${record.id}" class="text-center" style="color: #999; font-size: .7rem; margin: .5rem 0 0 0; display: inline-block;">点击查看完整报告&nbsp;&gt;</a>
                  <img src="${ctx.resource}/images/qrcode.jpg" class="qrcode">
                  <p class="text-center" style="font-size: .7rem; color: #fff; margin-bottom: 0px;"><span>长按关注陆老师小课堂</span></p>
                </div>
              </div>
              <div class="result-modal-buttons ">
                <span class="result-modal-button">
                  <a href="${ctx.host}/"><span class="icon icon-menu"></span></a>
                </span>
                <span class="result-modal-button">
                  <a href="${ctx.host}/rounds/${record.oralRound.id}?refresh=true"><span class="icon icon-refresh"></span></a>
                </span>
                <span class="result-modal-button">
                  <a href="${ctx.host}/rounds/${record.oralRound.id + 1}"><span class="icon icon-right"></span></a>
                </span>
              </div>
            </div>
          </div>
          <p style="text-align: center; font-size: .6rem; color: #999; position: absolute; width: 100%; bottom: 0px;">陆老师小课堂（微信号：llsxkt）出品</p>
        </div>
      </div>
    </div>
  </div>
  
  <%@ include file="/WEB-INF/include/script.jsp"%>
  <d:resource type="script" root="${ctx.resource}/build" src="js/page/oral/result.js" />
  <script type="text/javascript">
      require(['page/oral/result'], function(page) {
        var jsConfig = JSON.parse('${jsConfig}');
        page.init({
          'jsConfig': jsConfig,
          'stars': '3',
          'roundId': '1'
        });
      })
  </script>
  
</body>
</html>